home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 12 - 1996 / 12.04 Apr 96 / ThreadingAppleEvents.sit / ThreadingAppleEvents / Grant's CGI Code 1.0b13 / Util / MemoryUtil.c < prev    next >
MacBinary  |  1995-12-09  |  3.8 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sat Dec 9 11:48:24 1995, modified Sat Dec 9 11:48:24 1995, creator 'CWIE', type ASCII, 3137 bytes "MemoryUtil.c" , at 0xcc1 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 4d 65 6d 6f 72 79 | 55 74 69 6c 2e 63 00 00 |..Memory|Util.c..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 0c 41 00 | 00 01 9a ac ef 6e 58 ac |......A.|.....nX.|
|00000060| ef 6e 58 00 00 04 00 00 | 00 00 00 00 00 00 00 00 |.nX.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 68 0d 00 00 |........|....h...|
|00000080| 2f 2a 2a 2a 2a 2a 0d 20 | 2a 0d 20 2a 09 4d 65 6d |/*****. |*. *.Mem|
|00000090| 6f 72 79 55 74 69 6c 2e | 63 0d 20 2a 0d 20 2a 09 |oryUtil.|c. *. *.|
|000000a0| 54 68 69 73 20 69 73 20 | 61 20 73 75 70 70 6f 72 |This is |a suppor|
|000000b0| 74 20 66 69 6c 65 20 66 | 6f 72 20 22 47 72 61 6e |t file f|or "Gran|
|000000c0| 74 27 73 20 43 47 49 20 | 46 72 61 6d 65 77 6f 72 |t's CGI |Framewor|
|000000d0| 6b 22 2e 0d 20 2a 09 50 | 6c 65 61 73 65 20 73 65 |k".. *.P|lease se|
|000000e0| 65 20 74 68 65 20 6c 69 | 63 65 6e 73 65 20 61 67 |e the li|cense ag|
|000000f0| 72 65 65 6d 65 6e 74 20 | 74 68 61 74 20 61 63 63 |reement |that acc|
|00000100| 6f 6d 70 61 6e 69 65 73 | 20 74 68 65 20 64 69 73 |ompanies| the dis|
|00000110| 74 72 69 62 75 74 69 6f | 6e 20 70 61 63 6b 61 67 |tributio|n packag|
|00000120| 65 0d 20 2a 09 66 6f 72 | 20 6c 69 63 65 6e 73 69 |e. *.for| licensi|
|00000130| 6e 67 20 64 65 74 61 69 | 6c 73 2e 0d 20 2a 0d 20 |ng detai|ls.. *. |
|00000140| 2a 09 43 6f 70 79 72 69 | 67 68 74 20 a9 31 39 39 |*.Copyri|ght .199|
|00000150| 35 20 62 79 20 47 72 61 | 6e 74 20 4e 65 75 66 65 |5 by Gra|nt Neufe|
|00000160| 6c 64 0d 20 2a 09 67 72 | 61 6e 74 40 61 63 6d 2e |ld. *.gr|ant@acm.|
|00000170| 63 6f 6d 0d 20 2a 09 68 | 74 74 70 3a 2f 2f 61 72 |com. *.h|ttp://ar|
|00000180| 70 70 31 2e 63 61 72 6c | 65 74 6f 6e 2e 63 61 2f |pp1.carl|eton.ca/|
|00000190| 67 72 61 6e 74 2f 0d 20 | 2a 0d 20 2a 2a 2a 2a 2a |grant/. |*. *****|
|000001a0| 2f 0d 0d 23 69 6e 63 6c | 75 64 65 20 22 4d 79 43 |/..#incl|ude "MyC|
|000001b0| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e 2e 68 22 0d |onfigura|tion.h".|
|000001c0| 0d 23 69 6e 63 6c 75 64 | 65 20 22 63 6f 6d 70 69 |.#includ|e "compi|
|000001d0| 6c 65 72 5f 73 74 75 66 | 66 2e 68 22 0d 23 69 6e |ler_stuf|f.h".#in|
|000001e0| 63 6c 75 64 65 20 22 67 | 6c 6f 62 61 6c 73 2e 68 |clude "g|lobals.h|
|000001f0| 22 0d 0d 23 69 6e 63 6c | 75 64 65 20 22 4d 65 6d |"..#incl|ude "Mem|
|00000200| 6f 72 79 55 74 69 6c 2e | 68 22 0d 0d 0d 2f 2a 2a |oryUtil.|h".../**|
|00000210| 2a 20 20 4d 45 4d 4f 52 | 59 20 41 4c 4c 4f 43 41 |* MEMOR|Y ALLOCA|
|00000220| 54 49 4f 4e 20 20 2a 2a | 2a 2f 0d 0d 2f 2a 09 49 |TION **|*/../*.I|
|00000230| 20 75 73 65 20 74 68 65 | 73 65 20 27 77 72 61 70 | use the|se 'wrap|
|00000240| 70 65 72 73 27 20 74 6f | 20 74 6f 6f 6c 62 6f 78 |pers' to| toolbox|
|00000250| 20 6d 65 6d 6f 72 79 20 | 63 61 6c 6c 73 20 74 6f | memory |calls to|
|00000260| 20 70 72 6f 76 69 64 65 | 20 61 20 77 61 79 0d 09 | provide| a way..|
|00000270| 74 6f 20 63 6f 6e 73 69 | 73 74 61 6e 74 6c 79 20 |to consi|stantly |
|00000280| 68 61 6e 64 6c 65 20 65 | 72 72 6f 72 20 63 6f 6e |handle e|rror con|
|00000290| 64 69 74 69 6f 6e 73 2e | 20 2a 2f 0d 0d 48 61 6e |ditions.| */..Han|
|000002a0| 64 6c 65 0d 4d 79 4e 65 | 77 48 61 6e 64 6c 65 20 |dle.MyNe|wHandle |
|000002b0| 28 20 6c 6f 6e 67 20 74 | 68 65 53 69 7a 65 2c 20 |( long t|heSize, |
|000002c0| 4f 53 45 72 72 20 2a 6f | 75 74 45 72 72 20 29 0d |OSErr *o|utErr ).|
|000002d0| 7b 0d 09 48 61 6e 64 6c | 65 09 74 68 65 48 61 6e |{..Handl|e.theHan|
|000002e0| 64 6c 65 3b 0d 09 4f 53 | 45 72 72 09 74 68 65 45 |dle;..OS|Err.theE|
|000002f0| 72 72 3b 0d 09 0d 09 74 | 68 65 48 61 6e 64 6c 65 |rr;....t|heHandle|
|00000300| 09 3d 20 4e 65 77 48 61 | 6e 64 6c 65 09 28 20 74 |.= NewHa|ndle.( t|
|00000310| 68 65 53 69 7a 65 20 29 | 3b 0d 09 74 68 65 45 72 |heSize )|;..theEr|
|00000320| 72 09 09 3d 20 4d 65 6d | 45 72 72 6f 72 09 28 29 |r..= Mem|Error.()|
|00000330| 3b 0d 09 0d 09 69 66 20 | 28 20 6f 75 74 45 72 72 |;....if |( outErr|
|00000340| 20 21 3d 20 6e 69 6c 20 | 29 0d 09 7b 0d 09 09 2a | != nil |)..{...*|
|00000350| 6f 75 74 45 72 72 20 3d | 20 74 68 65 45 72 72 3b |outErr =| theErr;|
|00000360| 0d 09 7d 0d 09 0d 09 69 | 66 20 28 20 74 68 65 45 |..}....i|f ( theE|
|00000370| 72 72 20 21 3d 20 6e 6f | 45 72 72 20 29 0d 09 7b |rr != no|Err )..{|
|00000380| 0d 09 09 72 65 74 75 72 | 6e 20 6e 69 6c 3b 0d 09 |...retur|n nil;..|
|00000390| 7d 0d 09 65 6c 73 65 0d | 09 7b 0d 09 09 72 65 74 |}..else.|.{...ret|
|000003a0| 75 72 6e 20 74 68 65 48 | 61 6e 64 6c 65 3b 0d 09 |urn theH|andle;..|
|000003b0| 7d 0d 7d 0d 0d 0d 48 61 | 6e 64 6c 65 0d 4d 79 4e |}.}...Ha|ndle.MyN|
|000003c0| 65 77 48 61 6e 64 6c 65 | 43 6c 65 61 72 20 28 20 |ewHandle|Clear ( |
|000003d0| 6c 6f 6e 67 20 74 68 65 | 53 69 7a 65 2c 20 4f 53 |long the|Size, OS|
|000003e0| 45 72 72 20 2a 6f 75 74 | 45 72 72 20 29 0d 7b 0d |Err *out|Err ).{.|
|000003f0| 09 48 61 6e 64 6c 65 09 | 74 68 65 48 61 6e 64 6c |.Handle.|theHandl|
|00000400| 65 3b 0d 09 4f 53 45 72 | 72 09 74 68 65 45 72 72 |e;..OSEr|r.theErr|
|00000410| 3b 0d 09 0d 09 74 68 65 | 48 61 6e 64 6c 65 09 3d |;....the|Handle.=|
|00000420| 20 4e 65 77 48 61 6e 64 | 6c 65 43 6c 65 61 72 09 | NewHand|leClear.|
|00000430| 28 20 74 68 65 53 69 7a | 65 20 29 3b 0d 09 74 68 |( theSiz|e );..th|
|00000440| 65 45 72 72 09 09 3d 20 | 4d 65 6d 45 72 72 6f 72 |eErr..= |MemError|
|00000450| 09 09 09 28 29 3b 0d 09 | 0d 09 69 66 20 28 20 6f |...();..|..if ( o|
|00000460| 75 74 45 72 72 20 21 3d | 20 6e 69 6c 20 29 0d 09 |utErr !=| nil )..|
|00000470| 7b 0d 09 09 2a 6f 75 74 | 45 72 72 20 3d 20 74 68 |{...*out|Err = th|
|00000480| 65 45 72 72 3b 0d 09 7d | 0d 09 0d 09 69 66 20 28 |eErr;..}|....if (|
|00000490| 20 74 68 65 45 72 72 20 | 21 3d 20 6e 6f 45 72 72 | theErr |!= noErr|
|000004a0| 20 29 0d 09 7b 0d 09 09 | 72 65 74 75 72 6e 20 6e | )..{...|return n|
|000004b0| 69 6c 3b 0d 09 7d 0d 09 | 65 6c 73 65 0d 09 7b 0d |il;..}..|else..{.|
|000004c0| 09 09 72 65 74 75 72 6e | 20 74 68 65 48 61 6e 64 |..return| theHand|
|000004d0| 6c 65 3b 0d 09 7d 0d 7d | 0d 0d 0d 50 74 72 0d 4d |le;..}.}|...Ptr.M|
|000004e0| 79 4e 65 77 50 74 72 20 | 28 20 6c 6f 6e 67 20 74 |yNewPtr |( long t|
|000004f0| 68 65 53 69 7a 65 2c 20 | 4f 53 45 72 72 20 2a 6f |heSize, |OSErr *o|
|00000500| 75 74 45 72 72 20 29 0d | 7b 0d 09 50 74 72 09 09 |utErr ).|{..Ptr..|
|00000510| 74 68 65 50 74 72 3b 0d | 09 4f 53 45 72 72 09 74 |thePtr;.|.OSErr.t|
|00000520| 68 65 45 72 72 3b 0d 09 | 0d 09 74 68 65 50 74 72 |heErr;..|..thePtr|
|00000530| 09 3d 20 4e 65 77 50 74 | 72 09 28 20 74 68 65 53 |.= NewPt|r.( theS|
|00000540| 69 7a 65 20 29 3b 0d 09 | 74 68 65 45 72 72 09 3d |ize );..|theErr.=|
|00000550| 20 4d 65 6d 45 72 72 6f | 72 09 28 29 3b 0d 09 0d | MemErro|r.();...|
|00000560| 09 69 66 20 28 20 6f 75 | 74 45 72 72 20 21 3d 20 |.if ( ou|tErr != |
|00000570| 6e 69 6c 20 29 0d 09 7b | 0d 09 09 2a 6f 75 74 45 |nil )..{|...*outE|
|00000580| 72 72 20 3d 20 74 68 65 | 45 72 72 3b 0d 09 7d 0d |rr = the|Err;..}.|
|00000590| 09 0d 09 69 66 20 28 20 | 74 68 65 45 72 72 20 21 |...if ( |theErr !|
|000005a0| 3d 20 6e 6f 45 72 72 20 | 29 0d 09 7b 0d 09 09 72 |= noErr |)..{...r|
|000005b0| 65 74 75 72 6e 20 6e 69 | 6c 3b 0d 09 7d 0d 09 65 |eturn ni|l;..}..e|
|000005c0| 6c 73 65 0d 09 7b 0d 09 | 09 72 65 74 75 72 6e 20 |lse..{..|.return |
|000005d0| 74 68 65 50 74 72 3b 0d | 09 7d 0d 7d 0d 0d 0d 50 |thePtr;.|.}.}...P|
|000005e0| 74 72 0d 4d 79 4e 65 77 | 50 74 72 43 6c 65 61 72 |tr.MyNew|PtrClear|
|000005f0| 20 28 20 6c 6f 6e 67 20 | 74 68 65 53 69 7a 65 2c | ( long |theSize,|
|00000600| 20 4f 53 45 72 72 20 2a | 6f 75 74 45 72 72 20 29 | OSErr *|outErr )|
|00000610| 0d 7b 0d 09 50 74 72 09 | 09 74 68 65 50 74 72 3b |.{..Ptr.|.thePtr;|
|00000620| 0d 09 4f 53 45 72 72 09 | 74 68 65 45 72 72 3b 0d |..OSErr.|theErr;.|
|00000630| 09 0d 09 74 68 65 50 74 | 72 09 3d 20 4e 65 77 50 |...thePt|r.= NewP|
|00000640| 74 72 43 6c 65 61 72 09 | 28 20 74 68 65 53 69 7a |trClear.|( theSiz|
|00000650| 65 20 29 3b 0d 09 74 68 | 65 45 72 72 09 3d 20 4d |e );..th|eErr.= M|
|00000660| 65 6d 45 72 72 6f 72 09 | 09 28 29 3b 0d 09 0d 09 |emError.|.();....|
|00000670| 69 66 20 28 20 6f 75 74 | 45 72 72 20 21 3d 20 6e |if ( out|Err != n|
|00000680| 69 6c 20 29 0d 09 7b 0d | 09 09 2a 6f 75 74 45 72 |il )..{.|..*outEr|
|00000690| 72 20 3d 20 74 68 65 45 | 72 72 3b 0d 09 7d 0d 09 |r = theE|rr;..}..|
|000006a0| 0d 09 69 66 20 28 20 74 | 68 65 45 72 72 20 21 3d |..if ( t|heErr !=|
|000006b0| 20 6e 6f 45 72 72 20 29 | 0d 09 7b 0d 09 09 72 65 | noErr )|..{...re|
|000006c0| 74 75 72 6e 20 6e 69 6c | 3b 0d 09 7d 0d 09 65 6c |turn nil|;..}..el|
|000006d0| 73 65 0d 09 7b 0d 09 09 | 72 65 74 75 72 6e 20 74 |se..{...|return t|
|000006e0| 68 65 50 74 72 3b 0d 09 | 7d 0d 7d 0d 0d 0d 2f 2a |hePtr;..|}.}.../*|
|000006f0| 2a 2a 20 20 45 4d 45 52 | 47 45 4e 43 59 20 4d 45 |** EMER|GENCY ME|
|00000700| 4d 4f 52 59 20 20 2a 2a | 2a 2f 0d 23 70 72 61 67 |MORY **|*/.#prag|
|00000710| 6d 61 20 6d 61 72 6b 20 | 2d 0d 0d 2f 2a 20 49 4d |ma mark |-../* IM|
|00000720| 2d 4d 65 6d 6f 72 79 3a | 20 31 2d 34 36 20 2a 2f |-Memory:| 1-46 */|
|00000730| 0d 42 6f 6f 6c 65 61 6e | 0d 49 6e 69 74 69 61 6c |.Boolean|.Initial|
|00000740| 69 7a 65 45 6d 65 72 67 | 65 6e 63 79 4d 65 6d 6f |izeEmerg|encyMemo|
|00000750| 72 79 20 28 20 4f 53 45 | 72 72 20 2a 6f 75 74 45 |ry ( OSE|rr *outE|
|00000760| 72 72 20 29 0d 7b 0d 09 | 42 6f 6f 6c 65 61 6e 20 |rr ).{..|Boolean |
|00000770| 09 73 75 63 63 65 73 73 | 3b 0d 09 4f 53 45 72 72 |.success|;..OSErr|
|00000780| 09 09 74 68 65 45 72 72 | 3b 0d 09 0d 09 73 75 63 |..theErr|;....suc|
|00000790| 63 65 73 73 20 3d 20 74 | 72 75 65 3b 0d 09 0d 09 |cess = t|rue;....|
|000007a0| 67 45 6d 65 72 67 65 6e | 63 79 4d 65 6d 6f 72 79 |gEmergen|cyMemory|
|000007b0| 20 3d 20 4e 65 77 48 61 | 6e 64 6c 65 09 28 20 6b | = NewHa|ndle.( k|
|000007c0| 4d 65 6d 43 75 73 68 69 | 6f 6e 53 69 7a 65 20 29 |MemCushi|onSize )|
|000007d0| 3b 0d 09 74 68 65 45 72 | 72 09 09 09 20 3d 20 4d |;..theEr|r... = M|
|000007e0| 65 6d 45 72 72 6f 72 09 | 09 28 29 3b 0d 09 0d 09 |emError.|.();....|
|000007f0| 69 66 20 28 20 6f 75 74 | 45 72 72 20 21 3d 20 6e |if ( out|Err != n|
|00000800| 69 6c 20 29 0d 09 7b 0d | 09 09 2a 6f 75 74 45 72 |il )..{.|..*outEr|
|00000810| 72 20 3d 20 74 68 65 45 | 72 72 3b 0d 09 7d 0d 09 |r = theE|rr;..}..|
|00000820| 0d 09 69 66 20 28 20 74 | 68 65 45 72 72 20 21 3d |..if ( t|heErr !=|
|00000830| 20 6e 6f 45 72 72 20 29 | 0d 09 7b 0d 09 09 67 45 | noErr )|..{...gE|
|00000840| 6d 65 72 67 65 6e 63 79 | 4d 65 6d 6f 72 79 20 3d |mergency|Memory =|
|00000850| 20 6e 69 6c 3b 0d 09 09 | 73 75 63 63 65 73 73 09 | nil;...|success.|
|00000860| 09 09 20 3d 20 66 61 6c | 73 65 3b 0d 09 7d 0d 09 |.. = fal|se;..}..|
|00000870| 65 6c 73 65 0d 09 7b 0d | 09 09 53 65 74 47 72 6f |else..{.|..SetGro|
|00000880| 77 5a 6f 6e 65 20 28 20 | 4e 65 77 47 72 6f 77 5a |wZone ( |NewGrowZ|
|00000890| 6f 6e 65 50 72 6f 63 28 | 4d 79 47 72 6f 77 5a 6f |oneProc(|MyGrowZo|
|000008a0| 6e 65 29 20 29 3b 0d 09 | 7d 0d 09 0d 09 72 65 74 |ne) );..|}....ret|
|000008b0| 75 72 6e 20 73 75 63 63 | 65 73 73 3b 0d 7d 20 2f |urn succ|ess;.} /|
|000008c0| 2a 20 49 6e 69 74 69 61 | 6c 69 7a 65 45 6d 65 72 |* Initia|lizeEmer|
|000008d0| 67 65 6e 63 79 4d 65 6d | 6f 72 79 20 2a 2f 0d 0d |gencyMem|ory */..|
|000008e0| 0d 2f 2a 20 49 4d 2d 4d | 65 6d 6f 72 79 3a 20 31 |./* IM-M|emory: 1|
|000008f0| 2d 34 38 20 2a 2f 0d 70 | 61 73 63 61 6c 20 6c 6f |-48 */.p|ascal lo|
|00000900| 6e 67 0d 4d 79 47 72 6f | 77 5a 6f 6e 65 20 28 20 |ng.MyGro|wZone ( |
|00000910| 53 69 7a 65 20 63 62 4e | 65 65 64 65 64 20 29 0d |Size cbN|eeded ).|
|00000920| 7b 0d 09 4f 53 45 72 72 | 09 74 68 65 45 72 72 3b |{..OSErr|.theErr;|
|00000930| 0d 09 6c 6f 6e 67 09 74 | 68 65 41 35 3b 0d 09 6c |..long.t|heA5;..l|
|00000940| 6f 6e 67 09 74 68 65 53 | 69 7a 65 3b 0d 09 0d 09 |ong.theS|ize;....|
|00000950| 74 68 65 41 35 20 3d 20 | 53 65 74 43 75 72 72 65 |theA5 = |SetCurre|
|00000960| 6e 74 41 35 20 28 29 3b | 0d 09 0d 09 69 66 20 28 |ntA5 ();|....if (|
|00000970| 20 2a 67 45 6d 65 72 67 | 65 6e 63 79 4d 65 6d 6f | *gEmerg|encyMemo|
|00000980| 72 79 20 26 26 20 28 20 | 67 45 6d 65 72 67 65 6e |ry && ( |gEmergen|
|00000990| 63 79 4d 65 6d 6f 72 79 | 20 21 3d 20 47 5a 53 61 |cyMemory| != GZSa|
|000009a0| 76 65 48 6e 64 28 29 20 | 29 20 29 0d 09 7b 0d 09 |veHnd() |) )..{..|
|000009b0| 09 45 6d 70 74 79 48 61 | 6e 64 6c 65 20 28 20 67 |.EmptyHa|ndle ( g|
|000009c0| 45 6d 65 72 67 65 6e 63 | 79 4d 65 6d 6f 72 79 20 |Emergenc|yMemory |
|000009d0| 29 3b 0d 09 09 0d 09 09 | 74 68 65 45 72 72 20 3d |);......|theErr =|
|000009e0| 20 4d 65 6d 45 72 72 6f | 72 20 28 29 3b 0d 09 09 | MemErro|r ();...|
|000009f0| 0d 09 09 69 66 20 28 20 | 74 68 65 45 72 72 20 21 |...if ( |theErr !|
|00000a00| 3d 20 6e 6f 45 72 72 20 | 29 0d 09 09 7b 0d 09 09 |= noErr |)...{...|
|00000a10| 09 74 68 65 53 69 7a 65 | 20 3d 20 6e 69 6c 3b 0d |.theSize| = nil;.|
|00000a20| 09 09 7d 0d 09 09 65 6c | 73 65 0d 09 09 7b 0d 09 |..}...el|se...{..|
|00000a30| 09 09 74 68 65 53 69 7a | 65 20 3d 20 6b 4d 65 6d |..theSiz|e = kMem|
|00000a40| 43 75 73 68 69 6f 6e 53 | 69 7a 65 3b 20 2f 2a 20 |CushionS|ize; /* |
|00000a50| 6b 45 6d 65 72 67 65 6e | 63 79 4d 65 6d 6f 72 79 |kEmergen|cyMemory|
|00000a60| 53 69 7a 65 20 69 6e 20 | 49 4d 20 2a 2f 0d 09 09 |Size in |IM */...|
|00000a70| 7d 0d 09 7d 0d 09 65 6c | 73 65 0d 09 7b 0d 09 09 |}..}..el|se..{...|
|00000a80| 74 68 65 53 69 7a 65 20 | 3d 20 6e 69 6c 3b 0d 09 |theSize |= nil;..|
|00000a90| 7d 0d 09 0d 09 74 68 65 | 41 35 20 3d 20 53 65 74 |}....the|A5 = Set|
|00000aa0| 41 35 20 28 20 74 68 65 | 41 35 20 29 3b 0d 09 0d |A5 ( the|A5 );...|
|00000ab0| 09 72 65 74 75 72 6e 20 | 74 68 65 53 69 7a 65 3b |.return |theSize;|
|00000ac0| 0d 7d 20 2f 2a 20 4d 79 | 47 72 6f 77 5a 6f 6e 65 |.} /* My|GrowZone|
|00000ad0| 20 2a 2f 0d 0d 0d 2f 2a | 20 54 6f 20 63 68 65 63 | */.../*| To chec|
|00000ae0| 6b 20 74 68 61 74 20 74 | 68 65 20 6d 65 6d 6f 72 |k that t|he memor|
|00000af0| 79 20 72 65 73 65 72 76 | 65 20 69 73 20 69 6e 74 |y reserv|e is int|
|00000b00| 61 63 74 2e 0d 09 52 65 | 74 75 72 6e 73 20 74 72 |act...Re|turns tr|
|00000b10| 75 65 20 69 66 20 74 68 | 65 72 65 20 69 73 20 65 |ue if th|ere is e|
|00000b20| 6d 65 72 67 65 6e 63 79 | 20 6d 65 6d 6f 72 79 20 |mergency| memory |
|00000b30| 6f 6e 20 72 65 73 65 72 | 76 65 2e 0d 09 49 4d 2d |on reser|ve...IM-|
|00000b40| 4d 65 6d 6f 72 79 3a 20 | 31 2d 34 37 20 2a 2f 0d |Memory: |1-47 */.|
|00000b50| 42 6f 6f 6c 65 61 6e 0d | 49 73 45 6d 65 72 67 65 |Boolean.|IsEmerge|
|00000b60| 6e 63 79 4d 65 6d 41 76 | 61 69 6c 20 28 20 76 6f |ncyMemAv|ail ( vo|
|00000b70| 69 64 20 29 0d 7b 0d 09 | 72 65 74 75 72 6e 20 28 |id ).{..|return (|
|00000b80| 20 28 67 45 6d 65 72 67 | 65 6e 63 79 4d 65 6d 6f | (gEmerg|encyMemo|
|00000b90| 72 79 20 21 3d 20 6e 69 | 6c 29 20 26 26 20 28 2a |ry != ni|l) && (*|
|00000ba0| 67 45 6d 65 72 67 65 6e | 63 79 4d 65 6d 6f 72 79 |gEmergen|cyMemory|
|00000bb0| 20 21 3d 20 6e 69 6c 29 | 20 29 3b 0d 7d 20 2f 2a | != nil)| );.} /*|
|00000bc0| 20 49 73 45 6d 65 72 67 | 65 6e 63 79 4d 65 6d 41 | IsEmerg|encyMemA|
|00000bd0| 76 61 69 6c 20 2a 2f 0d | 0d 0d 2f 2a 20 49 4d 2d |vail */.|../* IM-|
|00000be0| 4d 65 6d 6f 72 79 3a 20 | 31 2d 34 38 20 2a 2f 0d |Memory: |1-48 */.|
|00000bf0| 23 69 66 20 21 28 6b 43 | 6f 6d 70 69 6c 65 57 69 |#if !(kC|ompileWi|
|00000c00| 74 68 51 75 69 74 4f 6e | 4c 6f 77 4d 65 6d 6f 72 |thQuitOn|LowMemor|
|00000c10| 79 29 0d 4f 53 45 72 72 | 0d 52 65 63 6f 76 65 72 |y).OSErr|.Recover|
|00000c20| 45 6d 65 72 67 65 6e 63 | 79 4d 65 6d 6f 72 79 20 |Emergenc|yMemory |
|00000c30| 28 20 76 6f 69 64 20 29 | 0d 7b 0d 09 52 65 61 6c |( void )|.{..Real|
|00000c40| 6c 6f 63 61 74 65 48 61 | 6e 64 6c 65 20 28 20 67 |locateHa|ndle ( g|
|00000c50| 45 6d 65 72 67 65 6e 63 | 79 4d 65 6d 6f 72 79 2c |Emergenc|yMemory,|
|00000c60| 20 6b 4d 65 6d 43 75 73 | 68 69 6f 6e 53 69 7a 65 | kMemCus|hionSize|
|00000c70| 20 29 3b 0d 09 0d 09 72 | 65 74 75 72 6e 20 4d 65 | );....r|eturn Me|
|00000c80| 6d 45 72 72 6f 72 20 28 | 29 3b 0d 7d 20 2f 2a 20 |mError (|);.} /* |
|00000c90| 52 65 63 6f 76 65 72 45 | 6d 65 72 67 65 6e 63 79 |RecoverE|mergency|
|00000ca0| 4d 65 6d 6f 72 79 20 2a | 2f 0d 23 65 6e 64 69 66 |Memory *|/.#endif|
|00000cb0| 0d 0d 2f 2a 2a 2a 20 20 | 45 4f 46 20 20 2a 2a 2a |../*** |EOF ***|
|00000cc0| 2f 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |/.......|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000d10| 60 00 00 fa 54 8b 52 46 | 69 06 bc 6e fe f2 6f ec |`...T.RF|i..n..o.|
|00000d20| 42 67 3f 07 48 6e fe f6 | 4e ad 2b 7a 10 1f 67 12 |Bg?.Hn..|N.+z..g.|
|00000d30| 0c 4d 65 6d 6f 72 79 55 | 74 69 6c 2e 63 c9 02 00 |.MemoryU|til.c...|
|00000d40| 00 00 54 45 58 54 43 57 | 49 45 00 04 00 00 00 00 |..TEXTCW|IE......|
|00000d50| 00 00 54 45 58 54 43 57 | 49 45 00 04 00 00 00 00 |..TEXTCW|IE......|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 ac 09 d9 61 00 00 | 00 00 00 00 01 9a 3f 07 |.....a..|......?.|
|00000d80| 48 6e fe fa a8 ff 48 6e | fe fa 48 6e fe f8 a9 00 |Hn....Hn|..Hn....|
|00000d90| 42 40 10 2e fe fa 4a 40 | 57 c0 be 6e fe f8 56 c1 |B@....J@|W..n..V.|
|00000da0| 80 01 67 14 42 a7 4e ad | 22 1a 2f 2e 00 08 4e ba |..g.B.N.|"./...N.|
|00000db0| ff 30 3d 5f 00 0e 60 54 | 52 6c fe 90 30 2c fe 90 |.0=_..`T|Rl..0,..|
|00000dc0| 48 c0 81 fc 00 14 48 40 | 4a 40 66 2c 2f 2c ff b0 |H.....H@|J@f,/,..|
|00000dd0| 42 a7 2f 2c ff b0 4e ad | 01 32 20 1f 72 28 d0 81 |B./,..N.|.2 .r(..|
|00000de0| 2f 00 4e ad 23 ba 42 67 | 3e b8 02 20 4a 5f 67 08 |/.N.#.Bg|>.. J_g.|
|00000df0| 2f 2e 00 08 4e ba f8 b4 | 20 6c ff b0 30 2c fe 90 |/...N...| l..0,..|
|00000e00| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e20| 00 00 00 00 00 00 00 03 | 00 04 00 57 00 05 01 b4 |........|...W....|
|00000e30| 02 19 00 57 00 05 01 b4 | 02 19 ad 2d c9 51 00 00 |...W....|...-.Q..|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 04 |........|........|
|00000e50| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000e60| 00 00 00 46 00 fc cb ec | 1b 8c 00 00 00 1c 00 46 |...F....|.......F|
|00000e70| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000e80| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000e90| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+